package com.matt.repository.photoAlbum;

import com.matt.domain.photoalbum.PhotoAlbumStaticTemplatePage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;


public interface PhotoAlbumTemplatePageRepository extends  JpaRepository<PhotoAlbumStaticTemplatePage, String> , JpaSpecificationExecutor<PhotoAlbumStaticTemplatePage> {

       List<PhotoAlbumStaticTemplatePage> findAllByTemplateIdOrderByCapacityDesc(String templateId);

}
